
import 'package:hrf_app/common/api/http_head.dart';

import '../../services/wp_http.dart';

/// 用户 api
class UserApi {
  ///登录
  static Future<Map<String, dynamic>> login(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/api/v1/auth/login",
      data: data,
    );
    var aa = res.data;
    return aa;
  }

  /// 获取人员信息
  static Future<Map<String, dynamic>> userInfo() async {
    var res = await WPHttpService.to.get(
      "${HttpHead.getHttpHead()}/api/v1/users/infoApp"
    );
    Map<String, dynamic> aa = res.data;

    return aa;
  }
}
